<tr>
<th>{{if $column_name|default}}{{$smarty.config.$column_name}}{{else}}{{$smarty.config.$name}}{{/if}}</th>
<td>
{{*------------------------*}}{{if $date|default}}
{{$data->$name->format($date)}}
<input type="hidden" name="{{$name}}" value="{{$data->$name->format($date)}}" />
{{*------------------------*}}{{else if !$labels|default}}
{{if $id|default}}
{{if $data->$name != 0}}{{$data->$name}}{{else}}{{$smarty.config.newpost}}{{/if}}
{{else if $br|default}}
{{$data->$name|nl2br}}
{{else}}
{{$data->$name}}
{{/if}}
<input type="hidden" name="{{$name}}" value="{{$data->$name}}" />
{{*------------------------*}}{{else}}
{{if (($data->$name)|default)|is_array}}
{{foreach $values as $k => $v}}
{{if $v|in_array:$data->$name}}
{{$labels[$k]}},
<input type="hidden" name="{{$name}}[]" value="{{$v}}" />
{{/if}}
{{/foreach}}
{{*------------------------*}}{{elseif $values|default}}
{{$smarty.config[$labels[$values[$data->$name]]]}}
<input type="hidden" name="{{$name}}" value="{{$data->$name}}" />
{{*------------------------*}}{{else}}
{{$smarty.config[$labels[$data->$name]]}}
<input type="hidden" name="{{$name}}" value="{{$data->$name}}" />
{{/if}}
{{/if}}
</td>
</tr>